<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="resources/css/main.css" />

<script type="text/javascript" src="resources/js/jquery-1.7.1.min.js"></script>

<title>$.get()</title>

<script type="text/javascript">
	$(function(){
		$('input:button').click(
			function(){
				$.get(
					'get',
					$('form').serialize(),
					function(data){
						$('div')
							.html(data)
							.fadeIn()
							.fadeOut(10000);
					},
					"html"
				);	
			}
		);
	});	
</script>


</head>

<body>
<h4>$.get()</h4>
<hr />
<form action="get">
	<label for="name">Name:
		<input type="text" name="name"/>
	</label>
	<input type="button" value="submit"/>
	<br/><br/>
	<div style="background-color: red; display: none; padding: 5px;" >
	</div>	
</form>

</body>
</html>